package cn.redcoral.messageplus.data.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.sql.Timestamp;

/**
 * 群组成员
 */
@Data
@TableName("mp_group_member")
public class GroupMember {
    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    // 群组ID
    private Long groupId;
    // 用户ID
    private String userId;
    // 创建时间
    private Timestamp createTime = new Timestamp(System.currentTimeMillis());
}
